﻿<%@ Page Title="企业月份统计" Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage_New.master"
	CodeBehind="ReportOfCompanyFirstJY.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportCompany.ReportOfCompanyFirstJY" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

	<script type="text/javascript" language="javascript">
        function ShowImg() {
            var img = document.getElementById("ctl00_ContentPlaceHolder1_img");
            var button = document.getElementById("btnShowImg");

            if (img.style.display == 'block') {
                img.style.display = 'none';
                button.value = '展开图表';
            }
            else {
                img.style.display = 'block';
                button.value = '隐藏图表';
            }
        }
	</script>

	<div id="tabnav">
		<ul>
			<li><a href="ReportOfCompanyFirstLevel.aspx">企业初始界面</a></li>
			<li><a href="ReportOfCompanyFirstSc.aspx">生产企业</a></li>
			<li class="active"><a href="ReportOfCompanyFirstJY.aspx">配送企业</a></li>
		</ul>
	</div>
	<div>
		<input id="btnShowImg" type="button" class="btn" onclick="ShowImg()" value="隐藏图表" />
	</div>
	<div id="img" runat="server" class="importlist">
		<asp:Label ID="lblnull" runat="server" Text="无数据" Visible="false"></asp:Label>
		<asp:Panel ID="Panel1" runat="server">
			<div id="chart1">
				<asp:Chart ID="ChartPurchasing" runat="server" BackColor="#D3DFF0" BackGradientStyle="TopBottom"
					BorderWidth="2" BorderColor="26, 59, 105" Width="1100px" Height="370">
					<Legends>
						<asp:Legend BackColor="Transparent" IsTextAutoFit="true" Name="Default" BackGradientStyle="None"
							Docking="Right" Alignment="Near">
						</asp:Legend>
					</Legends>
					<BorderSkin SkinStyle="Emboss"></BorderSkin>
					<ChartAreas>
						<asp:ChartArea Name="ChartComPurchasing" BorderColor="64, 64, 64, 64" BackSecondaryColor="Transparent"
							BackColor="64, 165, 191, 228" ShadowColor="Transparent">
							<Position Y="3" Height="92" Width="70" X="2"></Position>
							<AxisY LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
								<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
								<MajorGrid LineColor="64, 64, 64, 64" />
							</AxisY>
							<AxisX LineColor="64, 64, 64, 64" LabelAutoFitMaxFontSize="8">
								<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
								<MajorGrid LineColor="64, 64, 64, 64" />
							</AxisX>
						</asp:ChartArea>
					</ChartAreas>
				</asp:Chart>
			</div>
			<table class="innertable2">
				<tr>
					<td>
						<table class="innertable2">
							<tr>
								<td class="style1">
									医疗机构:
								</td>
								<td class="style1">
									<%=HospitalTotal%>
								</td>
							</tr>
							<tr>
								<td class="style1">
									药品数量:
								</td>
								<td>
									<%=DrugsTotal%>
								</td>
							</tr>
							<tr>
								<td class="style1">
									生产厂家:
								</td>
								<td>
									<%=FactoryTotal%>
								</td>
							</tr>
							<tr>
								<td class="style1">
									配送企业:
								</td>
								<td>
									<%=DistributionTotal%>
								</td>
							</tr>
							<tr>
								<td class="style1">
									采购总金额(万元):
								</td>
								<td>
									<%=OrderAmountTotal%>
								</td>
							</tr>
							<tr>
								<td class="style1">
									配送总金额(万元):
								</td>
								<td>
									<%=DistributionAmountTotal%>
								</td>
							</tr>
						</table>
					</td>
					<td>
						<table class="innertable2">
							<tr>
								<td class="style7">
									医疗机构:
								</td>
								<td class="style1">
									<%=HospitalTotal_PS%>
								</td>
							</tr>
							<tr>
								<td class="style7">
									药品数量:
								</td>
								<td>
									<%=DrugsTotal_PS%>
								</td>
							</tr>
							<tr>
								<td class="style7">
									生产厂家:
								</td>
								<td>
									<%=FactoryTotal_PS%>
								</td>
							</tr>
							<tr>
								<td class="style7">
									配送企业:
								</td>
								<td>
									<%=DistributionTotal_PS%>
								</td>
							</tr>
							<tr>
								<td class="style7">
									配送总金额(万元):
								</td>
								<td>
									<%=DistributionAmountTotal%>
								</td>
							</tr>
							<tr>
								<td class="style7">
									入库总金额(万元):
								</td>
								<td>
									<%=StorageAmountTotal%>
								</td>
							</tr>
						</table>
					</td>
				</tr>
			</table>
		</asp:Panel>
	</div>
	<asp:GridView ID="gvwProcureCatalog" runat="server" CssClass="mainlist" AutoGenerateColumns="False"
		CellPadding="1" CellSpacing="3" OnRowCommand="gvwProcureCatalog_RowCommand">
		<Columns>
			<asp:BoundField DataField="motch" HeaderText="月份" ReadOnly="true" />
			<asp:TemplateField HeaderText="采购类型">
				<ItemTemplate>
					<%#HZ.Supervise.Web.Function.FormatDrugSource(Eval("Source"))%>
				</ItemTemplate>
				<HeaderStyle Width="60px" />
			</asp:TemplateField>
			<asp:BoundField HeaderText="经营企业采购总数量" DataField="PuchaseCountSum" />
			<asp:BoundField HeaderText="经营企业入库总数量" DataField="WareHouseCount" />
			<asp:BoundField DataField="PuchaseCountSumHospital" HeaderText="经营企业出库数量" ReadOnly="True" />
			<asp:BoundField DataField="StockCount" HeaderText="经营企业库存数量" ReadOnly="True" />
			<asp:BoundField DataField="PuchaseCountAmountHospital" HeaderText="经营企业出库金额" ReadOnly="True" />
			<asp:TemplateField HeaderText="操作">
				<ItemTemplate>
					<%--<a href="CompanyOfMonthJY.aspx?mid=<%#Eval("motch")  %>">详情</a> --%>
					<asp:LinkButton ID="linkCompanyOfMonthJY" runat="server" CommandName="CompanyOfMonthJY"
						CommandArgument='<%#Eval("motch") %>' Text="详情"></asp:LinkButton>
				</ItemTemplate>
			</asp:TemplateField>
		</Columns>
	</asp:GridView>
	<div>
		<webdiyer:AspNetPager ID="AspNetPager1" runat="server">
		</webdiyer:AspNetPager>
	</div>
	<hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" Visible="False" />&nbsp;统计：<asp:Label
		ID="lblCount" runat="server"></asp:Label><div class="listip">
			<ul>
				<asp:LinkButton ID="lbtnSee" runat="server" Font-Size="Small" Visible="false">显示图表</asp:LinkButton><uc2:ChartControl
					ID="ChartControl1" runat="server" Visible="False" />
				<li>说明:<span>可以点击相应按钮进入查看详细信息</span> </li>
			</ul>
		</div>
</asp:Content>
